home *** CD-ROM | disk | FTP | other *** search
Wrap
; ----------------------------------------------------- ; Peace and Protection (by misspai) ; ----------------------------------------------------- ; Custom window popups (loads ; into remotes) (Second section) ; ----------------------------------------------------- ; Port scan window ; ----------------------------------------------------- menu @Ports { dclick /if ($1 < 5) halt | server $gettok($window(@ports).titlebar,2,32) $remove($remove($strip($gettok($line(@ports,$1),2,32)),[),]) Connect to port...:if ($sline(@ports,1).ln < 5) halt | server $gettok($window(@ports).titlebar,2,32) $remove($remove($strip($gettok($sline(@ports,1),2,32)),[),]) - %_port.pop1:{ _dosort @ports 5 4 75 unset %_port.pop1 set %_port.pop2 Sort by port number rline @Ports 2 Currently sorted by speed (fastest ports first) } %_port.pop2:{ _dosort @ports 5 2 $chr(91) 93 unset %_port.pop2 set %_port.pop1 Sort by port speed rline @Ports 2 Currently sorted by port number } Get new list:ports - Copy to clipboard:if ($sline(@ports,1).ln < 5) halt | clipboard $_stripout($sline(@ports,1)) - Close:window -c @Ports Help:help ! ports window popups } ; ----------------------------------------------------- ; Blacklist editor ; ----------------------------------------------------- menu @Blacklist { $_exec(set %.sel [ $sline(@Blacklist,0) ] ):{ } Remove $_plural2(entry,entries,%.sel):_doBsel k - Change $_plural(reason,%.sel) $+ ...:_doBsel r Change $_plural(mask,%.sel) .*!*@*.domain.com:_doBsel d .Enter new mask...:_doBsel m - Change channel .All channels:_doBsel a .Specific channel...:set %_arhelp _doBsel s | _askr _arhelp New target channel? Add a channel...:set %_arhelp _doBsel c | _askr _arhelp Channel to add to targets? - Clear blacklist:_Bselall | _doBsel k Select all entries:_Bselall Close:window -c @Blacklist - Help:help ! blacklist editor popups } alias _Bselall sline @Blacklist 4 | set %.tog.num $line(@Blacklist,0) | :loop | sline -a @Blacklist %.tog.num | if ($_vd(.tog.num) > 3) goto loop alias _doBsel { if ($sline(@Blacklist,1).ln < 4) halt set %.p2 $2 :loop set %.line $strip($sline(@Blacklist,1)) if (%.line == $null) halt set %.addr $gettok(%.line,1,9) set %.fromd $gettok(%.line,2,9) set %.why $gettok(%.line,3-,9) if (%.fromd == alláchannels) unset %.from else set %.from %.fromd if ($1 == k) { black %.from %.addr -k | dline @Blacklist $sline(@Blacklist,1).ln } elseif ($1 == d) { set %.newaddr $_ppmask(%.addr,4) black %.from %.newaddr -s -w %.why | black %.from %.addr -k rline @Blacklist $sline(@Blacklist,1).ln %col.dark $+ %.newaddr $+ $+ %col.target $+ %.fromd $+ $+ %col.base $+ %.why } elseif ($1 == a) { black %.addr -s -w %.why | black %.from %.addr -k rline @Blacklist $sline(@Blacklist,1).ln %col.dark $+ %.addr $+ $+ %col.target $+ alláchannels $+ $+ %col.base $+ %.why } elseif ($1 == s) { black $2 %.addr -s -w %.why | black %.from %.addr -k rline @Blacklist $sline(@Blacklist,1).ln %col.dark $+ %.addr $+ $+ %col.target $+ $2 $+ $+ %col.base $+ %.why } elseif ($1 == c) { black $2 %.addr -s -w %.why iline @Blacklist $_i($sline(@Blacklist,1).ln) %col.dark $+ %.addr $+ $+ %col.target $+ $2 $+ $+ %col.base $+ %.why sline -r @Blacklist $sline(@Blacklist,1).ln } elseif ($1 == m) { if (%.p2 == $null) { set %_arhelp _doBsel m | _pentry _arhelp $+ %.addr New mask for %col.custdark $+ %.addr $+ ? } black %.from %.p2 -s -w %.why | black %.from %.addr -k rline @Blacklist $sline(@Blacklist,1).ln %col.dark $+ %.p2 $+ $+ %col.target $+ %.fromd $+ $+ %col.base $+ %.why unset %.p2 } elseif ($1 == r) { if (%.p2 == $null) { set %_arhelp _doBsel r | _pentry _arhelp $+ $_s2p(%.why) New reason for %col.custdark $+ %.addr $+ ? } black %.from %.addr -s $2- rline @Blacklist $sline(@Blacklist,1).ln %col.dark $+ %.addr $+ $+ %col.target $+ %.fromd $+ $+ %col.base $+ $2- unset %.p2 } else halt goto loop } ; ----------------------------------------------------- ; Userlist editor ; ----------------------------------------------------- menu @Userlevel { dclick /window -c $active | if ($_isopen(@Userlist)) window @Userlist $_winpos(7%,7%,7%,7%) Close window:window -c $active | if ($_isopen(@Userlist)) window @Userlist $_winpos(7%,7%,7%,7%) } on 1:close:@Userlevel:if ($_isopen(@Userlist)) window @Userlist $_winpos(7%,7%,7%,7%) menu @Userlist { dclick /_doUsel n Remove entry:_doUsel k Add new user...:_askr _Uadd Nickname or address of new user? - Display help...:_ULhelp - Change basic level .1 (none):_doUsel + 1 .50 (safe):_doUsel + 50 .75 (protected):_doUsel + 75 .- .175 (ctcp do) ..Yes, I am sure I want this user to be able to make my computer do whatever they tell it to do ...I am absolutely sure ....Positively sure .....I definately want this user to have this access ......Just add the damn do access and quit giving me stupid warnings!:_doUsel + 175 .- .Custom...:set %_arhelp _doUsel + | _askr _arhelp Custom level? Add sub-level .chat (autoaccept):_doUsel + chat .send (autoaccept):_doUsel + send .nodcc (ignore dccs):_doUsel + nodcc .voice (autovoice):_doUsel + voice .nopw (autoop w/o pw):_doUsel + nopw .- .Custom...:set %_arhelp _doUsel2 + | _askr _arhelp Custom level? Remove sub-level .chat (autoaccept):_doUsel - chat .send (autoaccept):_doUsel - send .nodcc (ignore dccs):_doUsel - nodcc .voice (autovoice):_doUsel - voice .nopw (autoop w/o pw):_doUsel - nopw .- .Custom...:set %_arhelp _doUsel2 - | _askr _arhelp Custom level? Op access .Add a channel...:set %_arhelp _doUsel + op | _askr _arhelp Channel to add op access on? .Add all channels:_doUsel + op .- .Remove all:_doUsel - op .Remove a channel...:set %_arhelp _doUsel - op | _askr _arhelp Channel to remove op access on? Nicklist color .Off:_doUsel c .Select ..00 (white):_doUsel c 00 ..01 (black):_doUsel c 01 ..02 (dk blue):_doUsel c 02 ..03 (dk green):_doUsel c 03 ..04 (lt red):_doUsel c 04 ..05 (dk red):_doUsel c 05 ..06 (dk purple):_doUsel c 06 ..07 (orange):_doUsel c 07 ..08 (yellow):_doUsel c 08 ..09 (lt green):_doUsel c 09 ..10 (dk cyan):_doUsel c 10 ..11 (lt cyan):_doUsel c 11 ..12 (lt blue):_doUsel c 12 ..13 (lt purple):_doUsel c 13 ..14 (dk grey):_doUsel c 14 ..15 (lt grey):_doUsel c 15 - Change $_plural(mask,%.sel) .*!*@*.domain.com:_doUsel d .*!*identd@*:_doUsel i .Enter new mask...:_doUsel m Change nickname .Grab current visible nicknames:_doUsel n ! .Enter new nickname...:_doUsel n - Bulk selection .All entries:_Uselall .- .Nickname ..matching a name/mask...:set %_arhelp _Ubulksel n | _askr _arhelp Nickname or wildcard mask (ex: *gam*) to match? .Mask ..matching a wildcard mask...:set %_arhelp _Ubulksel m | _askr _arhelp Wildcard mask (ex: *!*@*.aol.com) to match? ..matching a user...:set %_arhelp _Ubulksel u | _askr _arhelp Find matching entry(s) by address for what user? (enter nickname or full address) .Main level ..below...:set %_arhelp _Ubulksel < | _askr _arhelp Select all users with main level below what value? ..above...:set %_arhelp _Ubulksel > | _askr _arhelp Select all users with main level above what value? ..- ..equal to...:set %_arhelp _Ubulksel == | _askr _arhelp Select all users with main level equal to what value? ..not equal to...:set %_arhelp _Ubulksel != | _askr _arhelp Select all users with main level not equal to what value? .Sublevel ..equal to...:set %_arhelp _Ubulksel s | _askr _arhelp Select all users with what sublevel? ..not equal to...:set %_arhelp _Ubulksel w | _askr _arhelp Select all users without what sublevel? ..- ..Any sublevel:_Ubulksel w (none) ..No sublevel:_Ubulksel s (none) .Op access ..on a specific channel...:set %_arhelp _Ubulksel o | _askr _arhelp Select all users with op access on what channel? ..on all channels:_Ubulksel o any ..- ..on at least one channel:_Ubulksel a != ..on no channels:_Ubulksel a == .Timestamp ..older than...:set %_arhelp _Ubulksel >= | _askr _arhelp Select entries that are at least how many days old? (decimals ok) ..newer than...:set %_arhelp _Ubulksel <= | _askr _arhelp Select entries that are newer than how many days? (decimals ok) Close:window -c @Userlist | window -c @Userlevel - Help:help ! userlist editor popups } on 1:close:@Userlist:window -c @Userlevel alias _Uselall sline @Userlist 5 | set %.tog.num $line(@Userlist,0) | :loop | sline -a @Userlist %.tog.num | if ($_vd(.tog.num) > 4) goto loop alias _doUsel2 _doUsel $1 @ $+ $2 alias _Uadd { if ($_ismask($1)) { set %.addr $1 if (* !isin %.addr) set %.addr $_ppmask(%.addr,3) } elseif ($address($1,5) == $null) _lookup $1 3 _Uadd , else set %.addr $_ppmask($1,3) userlevel %.addr 1 -q _ULaline %.addr $_i($line(@Userlist,0)) sline @Userlist $line(@Userlist,0) } ; ----------------------------------------------------- ; Away log ; ----------------------------------------------------- menu @Away { dclick /_aquery $active $1 Query:_aquery $active $sline($active,1).ln - Split .Messages ..Private...:_afilter $active mp ! private messages ..Channel...:_afilter $active mc ! channel messages ..- ..All...:_afilter $active m ! messages .Notices ..Pivate...:_afilter $active np ! private notices ..Op...:_afilter $active no ! op notices ..Channel...:_afilter $active nc ! channel notices ..- ..All...:_afilter $active n ! notices .Events ..Modes/etc...:_afilter $active ed ! mode changes ..File/etc...:_afilter $active ef ! file events ..Other...:_afilter $active eo ! misc. events ..- ..All...:_afilter $active e ! events View .Messages ..Private...:_afilter $active mp !! private messages ..Channel...:_afilter $active mc !! channel messages ..- ..All...:_afilter $active m !! messages .Notices ..Private...:_afilter $active np !! private notices ..Op...:_afilter $active no !! op notices ..Channel...:_afilter $active nc !! channel notices ..- ..All...:_afilter $active n !! notices .Events ..Modes/etc...:_afilter $active ed !! mode changes ..File/etc...:_afilter $active ef !! file events ..Other...:_afilter $active eo !! misc. events ..- ..All...:_afilter $active e !! events Filter .Messages ..Private:_afilter $active mp ..Channel:_afilter $active mc ..- ..All:_afilter $active m .Notices ..Private:_afilter $active np ..Op:_afilter $active no ..Channel:_afilter $active nc ..- ..All:_afilter $active n .Events ..Modes/etc:_afilter $active ed ..File/etc:_afilter $active ef ..Other:_afilter $active eo ..- ..All:_afilter $active e - Clipboard:clipboard $sline($active,1) Save...:set %_arhelp _aLsave $active | _askr _arhelp Filename to save awaylog to? - Flush:alog f Close:window -c $active - Help:help ! away log popups } alias _aLsave savebuf $1- | _recfile2 $2- alias _aqhelp _aquery $active $sline($active,1).ln alias _aquery { set %.who $_aLnick($1,$2) if (%.who == $null) return q %.who set %.num 1 set %.max $line($1,0) :loop if ($_aLnick($1,%.num) == %.who) { set %.line $line($1,%.num) if ($left(%.line,1) == [) set %.line $gettok(%.line,2-,32) if ($left(%.line,1) == *) echo $colour(act) -i2 %.who * $_rchop(1,%.line) else echo $colour(norm) -i2 %.who %.line dline $1 %.num dec %.num | dec %.max } if ($_vi(.num) <= %.max) goto loop } alias _aLnick { if ($2 < 1) return set %.line $line($1,$2) if (: isin %.line) return set %.nick $gettok(%.line,1,32) if ([ isin %.nick) set %.nick $gettok(%.line,2,32) if (* isin %.nick) set %.nick $remove(%.nick,*) elseif (< isin %.nick) set %.nick $remove($remove(%.nick,<),>) else return return %.nick } alias _afilter { if (! isin $3) { set %.num 2 :loop1 set %.win @Away $+ %.num if ($window(%.win) != $null) { inc %.num | goto loop1 } window -nl %.win /_aqhelp @Away %font.basic titlebar %.win - Away log split ( $+ $4- $+ ) } else unset %.win set %.num 1 set %.max $line($1,0) set %.scan %@ $+ :loop2 set %.line $line($1,%.num) if ($left(%.line,1) == [) set %.line $gettok(%.line,2-,32) set %.bit $left(%.line,1) if (%.bit isin *<) { if (: isin %.line) set %.type mc else set %.type mp } elseif (%.bit == -) { if (: isin %.line) { if ($left(%.line,2) == -@) set %.type no else set %.type nc } else set %.type np } else { if (%.scan isin %.line) { if ((to isin %.line) || (from isin %.line) || (with isin %.line)) set %.type ef else set %.type eo } else set %.type ed } if ($2 isin %.type) { if (%.win != $null) aline %.win $line($1,%.num) if ($3 != !!) { dline $1 %.num | dec %.num | dec %.max } } if ($_vi(.num) <= %.max) goto loop2 if (%.win != $null) window -bar %.win } ; ----------------------------------------------------- ; CD Player ; ----------------------------------------------------- menu @CD { dclick /if ($1 == 1) _cddc | elseif ($1 == 2) cdtrack 1 -q | elseif ($1 == 4) cdedit title | elseif ($1 == 5) cdedit artist | elseif ($1 > 6) { if (%cdp.click == edit) cdedit $calc($1 - 6) | else cdtrack $calc($1 - 6) -q } Edit..:set %.ln $sline(@CD,1).ln | if (%.ln == 4) cdedit title | elseif (%.ln == 5) cdedit artist | elseif (%.ln > 6) cdedit $calc(%.ln - 6) Play track:_cdtt -q Play track to .$chan(1):_cdtt $chan(1) .$chan(2):_cdtt $chan(2) .$chan(3):_cdtt $chan(3) .$chan(4):_cdtt $chan(4) .$chan(5):_cdtt $chan(5) .$chan(6):_cdtt $chan(6) .$chan(7):_cdtt $chan(7) .$chan(8):_cdtt $chan(8) .$chan(9):_cdtt $chan(9) .$chan(10):_cdtt $chan(10) .- .$chat(1):_cdtt $chat(1) .$chat(2):_cdtt $chat(2) .$chat(3):_cdtt $chat(3) .$chat(4):_cdtt $chat(4) .$chat(5):_cdtt $chat(5) .- .$query(1):_cdtt $query(1) .$query(2):_cdtt $query(2) .$query(3):_cdtt $query(3) .$query(4):_cdtt $query(4) .$query(5):_cdtt $query(5) - Double click will .$_dynpop($_if( [ edit ] == [ %cdp.click ] )) Edit track:_cddc edit .$_dynpop($_if( [ edit ] != [ %cdp.click ] )) Play track:_cddc play - Play CD:cdtrack 1 -q Close:window -c @CD - Help:help ! cd info popups } ; ----------------------------------------------------- ; Protection settings ; ----------------------------------------------------- menu @Protection { dclick /_peditl $1 Edit setting...:_peditl $sline(@Protection,1).ln - Disable:set %.nummie $sline(@Protection,0) | :loop | _peditl $sline(@Protection,%.nummie).ln $chr(160) | if ($_vd(.nummie) > 0) goto loop Default value:set %.nummie $sline(@Protection,0) | :loop | _peditl $sline(@Protection,%.nummie).ln | if ($_vd(.nummie) > 0) goto loop - View global settings:protedit View channel settings .$chan(1):protedit $chan(1) .$chan(2):protedit $chan(2) .$chan(3):protedit $chan(3) .$chan(4):protedit $chan(4) .$chan(5):protedit $chan(5) .$chan(6):protedit $chan(6) .$chan(7):protedit $chan(7) .$chan(8):protedit $chan(8) .$chan(9):protedit $chan(9) .$chan(10):protedit $chan(10) .- .Other...:_askr protedit Channel to view settings for? - Close:window -c $active } on 1:close:@Protection:window -c @Setting | window -c @ListSetting | window -c @WhoisOnJoin menu @Setting { dclick /_psetclk $1 Modify...:_psetclk $sline(@Setting,1).ln - Add action...:_psetclk %_prot.ln4 Delete action:set %.nummie $sline(@Setting,0) | :loop | set %.catch22 $sline(@Setting,%.nummie).ln | if ((%.catch22 >= %_prot.ln2) && (%.catch22 <= %_prot.ln3)) _psetclk %.catch22 $chr(160) | if ($_vd(.nummie) > 0) goto loop - Disable all:_psetclk %_prot.ln5 Default settings:_psetclk %_prot.ln6 - Close:window -c $active } menu @ListSetting { dclick /_lsetclk $1 Modify...:_lsetclk $sline(@ListSetting,1).ln Delete:set %.nummie $sline(@ListSetting,0) | :loop | _lsetclk $sline(@ListSetting,%.nummie).ln $chr(160) | if ($_vd(.nummie) > 0) goto loop Add...:_lsetclk $line(@ListSetting,0) - Close:window -c $active } ; ----------------------------------------------------- ; Configuration ; ----------------------------------------------------- menu @Config { dclick /_consel $1 Select...:_consel $sline(@Config,1).ln %_condef1:set %.nummie $sline(@Config,0) | :loop | _consel $sline(@Config,%.nummie).ln | if ($_vd(.nummie) > 0) goto loop %_condef2:set %.nummie $sline(@Config,0) | :loop | _consel $sline(@Config,%.nummie).ln f | if ($_vd(.nummie) > 0) goto loop - Close:window -c $active Help:help ! configuration } on 1:close:@Config:window -c @Option | window -c @SoundDirs menu @Option { dclick /_conopt $1 Select...:_conopt $sline(@Option,1).ln - Close:window -c $active } menu @CTCP { dclick /_ce.sel $1 Select...:_ce.sel $sline(@CTCP,1).ln Delete:_ce.sel $sline(@CTCP,1).ln $chr(160) Default:_ce.sel $sline(@CTCP,1).ln ! Random...:_ce.sel $sline(@CTCP,1).ln ? - Close:window -c $active } menu @Sample { dclick /_sample Refresh:_sample - Close:window -c @Sample | window -c @ColorConfig | window -c @Schemes } on 1:close:@Sample:window -c @ColorConfig | window -c @Schemes menu @ColorConfig { dclick _clredit $1 Modify...:_clredit $sline(@ColorConfig,1).ln Schemes...:_clredit 2 - Close:window -c @Sample | window -c @ColorConfig | window -c @Schemes } on 1:close:@ColorConfig:window -c @Sample menu @Schemes { dclick _scmsel $1 Select...:_scmsel $sline(@Schemes,1).ln - Edit colors...:_scmsel 5 Rename scheme...:_scmsel 3 - Save changes to sheme:_scmsel 6 Save as new scheme...:_scmsel 7 New ."blank" scheme...:_scmsel 8 ."quick" scheme...:_scmsel 10 - Delete schemes...:_scmsel 9 - Scheme distribution .Export scheme file...:_scmsel 12 .Import scheme file...:_scmsel 13 .- .Send scheme via CTCP...:_scmsel 14 - Close:window -c @Sample | window -c @ColorConfig | window -c @Schemes } on 1:close:@Schemes:window -c @Sample menu @Fonts { Close:_fontclose } alias -l _fontclose { window -c @BasicFont | window -c @FixedFont | window -c @PopupFont | window -c @BasicSample | window -c @FixedSample | window -c @PopupSample } on 1:close:@*Font:_fontclose on 1:close:@*Sample:_fontclose menu @Elements { Close:_elemclose } alias -l _elemclose { window -c @Seperator | window -c @Brackets | window -c @Logos } on 1:close:@Seperator:_elemclose on 1:close:@Brackets:_elemclose on 1:close:@Logos:_elemclose menu @SoundDirs { dclick /_sdirclk $1 Modify...:_sdirclk $sline(@SoundDirs,1).ln Delete:set %.nummie $sline(@SoundDirs,0) | :loop | _sdirclk $sline(@SoundDirs,%.nummie).ln $chr(160) | if ($_vd(.nummie) > 0) goto loop Add...:_sdirclk $line(@SoundDirs,0) - Close:window -c $active } ; ----------------------------------------------------- ; Various automatic logs (although ; all optional.) ; ----------------------------------------------------- #activitylog on alias _fixts { set %.ts $timestamp if ($len(%.ts) == 6) return $replace(%.ts,[,[0) return %.ts } alias _alog write $_wrapfile($logdirActivity.Log) $left($adate,5) $_fixts $1 $_rpad(15,.,$2) $_rpad(5,.,$3) $_lpad(20,.,$4) $5- alias _alogban { if ($1- == $null) set %.logban : "no matching users" else set %.logban : " $+ $1- $+ " if (. isin $nick) _alog +b $chan BAN Server banned $banmask $+ %.logban ( $+ $nick $+ ) else _alog +b $chan BAN $nick banned $banmask $+ %.logban ( $+ $address $+ ) } on 1:unban:#:_alog -b $chan UNBAN $nick unbanned $banmask ( $+ $address $+ ) on 1:op:#:_alog +o $chan OP $nick opped $opnick ( $+ $address $+ / $+ $gettok($address($opnick,5),2,33) $+ ) on 1:serverop:#:_alog +o $chan OP Server opped $opnick ( $+ $nick $+ / $+ $gettok($address($opnick,5),2,33) $+ ) on 1:deop:#:if (. isin $nick) _alog -o $chan DEOP Server deopped $opnick ( $+ $nick $+ ) | else _alog -o $chan DEOP $nick deopped $opnick ( $+ $address $+ / $+ $gettok($address($opnick,5),2,33) $+ ) on 1:voice:#:if (. isin $nick) _alog +v $chan VOICE Server voiced $vnick ( $+ $nick $+ ) | else _alog +v $chan VOICE $nick voiced $vnick ( $+ $address $+ / $+ $gettok($address($vnick,5),2,33) $+ ) on 1:devoice:#:if (. isin $nick) _alog -v $chan DEVOC Server devoiced $vnick ( $+ $nick $+ ) | else _alog -v $chan DEVOC $nick devoiced $vnick ( $+ $address $+ / $+ $gettok($address($vnick,5),2,33) $+ ) on 1:join:#:_alog >j $chan JOIN $nick joined ( $+ $address $+ ) on 1:part:#:if ($1 != $null) _alog <p $chan PART $nick parted: " $+ $strip($1-) $+ " ( $+ $address $+ ) | else _alog <p $chan PART $nick parted ( $+ $address $+ ) on 1:kick:#:if (. isin $nick) _alog <k $chan KICK Server kicked $knick $+ : " $+ $strip($1-) $+ " ( $+ $nick $+ / $+ $gettok($address($knick,5),2,33) $+ ) | else _alog <k $chan KICK $nick kicked $knick $+ : " $+ $strip($1-) $+ " ( $+ $address $+ / $+ $gettok($address($knick,5),2,33) $+ ) on 1:nick:if ($comchan($newnick,0) == 1) _alog *n $comchan($newnick,1) NICK $nick became $newnick ( $+ $address $+ ) | else _alog *n ( $+ $comchan($newnick,0) $+ channels) NICK $nick became $newnick ( $+ $address $+ ) on 1:mode:#:_alog $left($1,2) $chan MODE $nick set $1- ( $+ $address $+ ) on 1:servermode:#:_alog $left($1,2) $chan MODE Server set $1- ( $+ $nick $+ ) on 1:quit:if ($comchan($nick,0) == 1) _alog <q $comchan($nick,1) QUIT $nick quit: " $+ $strip($1-) $+ " ( $+ $address $+ ) | else _alog <q ( $+ $comchan($nick,0) $+ channels) QUIT $nick quit: " $+ $strip($1-) $+ " ( $+ $address $+ ) on 1:topic:#:if (. isin $nick) else _alog *t $chan TOPIC Server topic: " $+ $strip($1-) $+ " ( $+ $nick $+ ) | else _alog *t $chan TOPIC $nick topic: " $+ $strip($1-) $+ " ( $+ $address $+ ) #activitylog end #dcclog on on 1:open:=:if ($nick != $me) write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts DCC Chat opened with $nick ( $+ $chat($nick).ip $+ ) on 1:close:=:if ($nick == $me) return | if ($chat($nick).ip == $null) write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts DCC Chat canceled with $nick | else write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts DCC Chat closed with $nick ( $+ $chat($nick).ip $+ ) on 1:open:!:write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts Fileserver opened with $nick ( $+ $fserv($nick).ip $+ ) on 1:close:!:if ($fserv($nick).ip == $null) write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts Fileserver canceled with $nick | else write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts Fileserver closed with $nick ( $+ $fserv($nick).ip $+ ) on 1:filesent:*:{ set %.num $send(0) :loop if (($send(%.num) != $nick) || ($send(%.num).file != $nopath($filename))) { if ($_vd(.num) > 0) goto loop | else set %.num $send($nick) } write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts DCC Send of $filename to $nick ( $+ $send(%.num).ip $+ ) successful ( $+ $send(%.num).cps CPS) } on 1:filercvd:*:{ set %.num $get(0) :loop if (($get(%.num) != $nick) || ($get(%.num).file != $nopath($filename))) { if ($_vd(.num) > 0) goto loop | else set %.num $get($nick) } write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts DCC Get of $filename from $nick ( $+ $get(%.num).ip $+ ) successful ( $+ $get(%.num).cps CPS) } on 1:sendfail:*:{ set %.num $send(0) :loop if (($send(%.num) != $nick) || ($send(%.num).file != $nopath($filename))) { if ($_vd(.num) > 0) goto loop | else set %.num $send($nick) } write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts DCC Send of $filename to $nick ( $+ $send(%.num).ip $+ ) FAILED ( $+ $send(%.num).sent $+ / $+ $send(%.num).size sent, $send(%.num).pc $+ % $+ , $send(%.num).cps CPS) } on 1:getfail:*:{ set %.num $get(0) :loop if (($get(%.num) != $nick) || ($get(%.num).file != $nopath($filename))) { if ($_vd(.num) > 0) goto loop | else set %.num $get($nick) } write $_wrapfile($logdirDCC.Log) $left($adate,5) $_fixts DCC Get of $filename from $nick ( $+ $get(%.num).ip $+ ) FAILED ( $+ $get(%.num).rcvd $+ / $+ $get(%.num).size sent, $get(%.num).pc $+ % $+ , $get(%.num).cps CPS) } #dcclog end ; ----------------------------------------------------- ; Misc cool windows ; ----------------------------------------------------- menu @Ping { dclick /window -c @Ping Reping .Standard:ping $_ptarget(d) .- .Fake ping:fping $_ptarget(d) .Version ping:vping $_ptarget(d) .Server ping:sping $_ptarget Average lag:avglag - Query:{ set %.targ $_ptarget set %.num $_numtok(44,%.targ) :loop q $gettok(%.targ,%.num,44) if ($_vd(.num) > 0) goto loop } Chat:{ set %.targ $_ptarget set %.num $_numtok(44,%.targ) :loop c $gettok(%.targ,%.num,44) if ($_vd(.num) > 0) goto loop } - Copy:if ($line(@Ping,0) == 1) clipboard $remove($_stripout($line(@Ping,1)),$chr(160)) | else clipboard $remove($_stripout($sline(@Ping,1)),$chr(160)) Delete:_ptarget d Select all:set %.num $line(@Ping,0) | if (%.num == 0) halt | :loop | sline -a @Ping %.num | if ($_vd(.num) > 0) goto loop - Configure...:config whoisping Window .Record position:set %pp.ping $window(@Ping).x $window(@Ping).y $window(@Ping).w $window(@Ping).h .Restore position:window @Ping %pp.ping .- .Default position:set %pp.ping $_winpos(14%,7%,9%,7%) | window @Ping %pp.ping - Close:window -c @Ping Help:help ! ping basket popups } menu @Whois { dclick /window -c @Whois | q %_last.whois Query:window -c @Whois | q %_last.whois Chat:window -c @Whois | if (%_last.whoist == is) c %_last.whois | else { disp Attempting to connect via chat to IP of %col.target $+ %_last.whois $+ ... | if ($longip(%_last.whois.addr) != $null) c %_last.whois.addr | else { .enable #-wwdc | .dns %_last.whois.addr } } Chat to IP:c %_last.whois.addr - Join .$_tf2any(%^follow.2,All,$null):j %_last.whois.chan .- .%^follow.1:j %^follow.1 .%^follow.2:j %^follow.2 .%^follow.3:j %^follow.3 .%^follow.4:j %^follow.4 .%^follow.5:j %^follow.5 .%^follow.6:j %^follow.6 .%^follow.7:j %^follow.7 .%^follow.8:j %^follow.8 .%^follow.9:j %^follow.9 .%^follow.10:j %^follow.10 - Ping .Standard:ping %_last.whois .- .Fake ping:fping %_last.whois .Version ping:vping %_last.whois .Server ping:sping %_last.serv - User info .Extended whois:w " $+ %_last.whois $+ " " $+ %_last.whois $+ " .- .User central:uwho %_last.whois .Address book:abook %_last.whois .- .Get DNS:dns %_last.whois.addr .Get hostmask:host %_last.whoisf .Unix finger:finger %_last.whois.identd $+ @ $+ %_last.whois.addr User level .View:user %_last.whoisf .Authorize:auth %_last.whoisf .- .Level 1 (no access):user %_last.whoisf 1 .Level 50 (safe):user %_last.whoisf 50 .Level 75 (protected):user %_last.whoisf 75 .- .Add sublevel .."chat" (auto accept DCC chats):user %_last.whoisf +chat .."send" (auto accept DCC sends):user %_last.whoisf +send .."nodcc" (auto ignore DCCs):user %_last.whoisf +nodcc .."voice" (auto voice user):user %_last.whoisf +voice .."op" (op on ANY channel via password):user %_last.whoisf +op .."nopw" (with "op", ops without password):user %_last.whoisf +nopw .Remove sublevel .."chat" (auto accept DCC chats):user %_last.whoisf -chat .."send" (auto accept DCC sends):user %_last.whoisf -send .."nodcc" (auto ignore DCCs):user %_last.whoisf -nodcc .."voice" (auto voice user):user %_last.whoisf -voice .."op" (remove ALL ops access):user %_last.whoisf -op .."nopw" (ops without password):user %_last.whoisf -nopw Notify .Add to notify (any server) ..No address check...:set %_arhelp notify -a %_last.whois %_last.whoisf | _pentry _arhelp Note to use for user's notify?2 ..Identd check...:set %_arhelp notify -ai %_last.whois %_last.whoisf | _pentry _arhelp Note to use for user's notify?2 ..Identd + domain check...:set %_arhelp notify -ad %_last.whois %_last.whoisf | _pentry _arhelp Note to use for user's notify?2 .Add to notify (this server only) ..No address check...:set %_arhelp notify -av %_last.whois %_last.whoisf | _pentry _arhelp Note to use for user's notify?2 ..Identd check...:set %_arhelp notify -aiv %_last.whois %_last.whoisf | _pentry _arhelp Note to use for user's notify?2 ..Identd + domain check...:set %_arhelp notify -adv %_last.whois %_last.whoisf | _pentry _arhelp Note to use for user's notify?2 .- .Remove from notify:notify -r %_last.whois - Configure...:config whoisping Window .Clear:set %.who.file $_ppdir $+ who-temp.txt | if ($exists(%.who.file)) .remove %.who.file | window -c @Whois | tome .- .Record position:set %pp.whois $window(@Whois).x $window(@Whois).y $window(@Whois).w $window(@Whois).h .Restore position:window @Whois %pp.whois .- .Default position:set %pp.whois $_winpos(14%,7%,7%,9%) | window @Whois %pp.whois - Copy:set %.cl %_last.whois %_last.whoist %_last.whois.identd $+ @ $+ %_last.whois.addr %_last.whoisr | if ((%_last.whoist == is) && (%_last.whois.chan != $null)) set %.cl $gettok(%.cl,1-3,32) on %_last.whoisc $gettok(%.cl,4-,32) | clipboard %.cl Close:window -c @Whois - Help:help ! whois tome popups }